# -*- sh -*-
# $NetBSD: DEINSTALL.in,v 1.3 2009/05/20 08:34:42 phonohawk Exp $
#
DISTNAME="@DISTNAME@"
HASKELL_PKG_BIN="@HASKELL_PKG_BIN@"
HASKELL_PKG_DESCR_FILE="@HASKELL_PKG_DESCR_FILE@"

case ${STAGE} in 
    DEINSTALL)
        if [ -f ${HASKELL_PKG_DESCR_FILE} ]; then
            ${HASKELL_PKG_BIN} unregister --force ${DISTNAME}
        fi
        ;;
esac
